﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DTOSingTowerMall;
using ContractSingTowerMall;

namespace ServiceHostSingTowerMall
{
    public class EventAdapter
    {
        public EventDetail GetEventDetail(IEventHallBooking ev)
        {
            EventDetail ed = new EventDetail();
            ed.EventStartDateTime = ev.EventStartDateTime;
            ed.EventEndDateTime = ev.EventEndDateTime;
            ed.CompanyName = ev.CompanyName;
            ed.EventTitle = ev.EventTitle;
            ed.EventDescription = ev.EventDescription;
            return ed;
        }

    }
}